<div id='messages'>
	<div id='erro'    class='container-msg erro'><?php echo @$erro; ?></div>
	<div id='success' class='container-msg success'><?php echo @$success; ?></div>
        <div id='alert'   class='container-msg alert'><?php echo @$alert; ?></div>
        <div id='alert'   class='container-msg info'><?php echo @$info; ?></div>
        <div id='popup'   class='container-msg popup'><?php echo @$popup; ?></div>
</div>
<?php 
$this->Html->LoadJqueryFunction("
    $('#messages a.close').live('click', function(){
        $(this).parent().fadeOut(1500);
    });

    $('#messages .container-msg').each(function(){
        if($(this).html() != ''){ 
            $(this).prepend('<a href=\"#\" class=\"close\">[X]</a>');
             $(this).fadeIn(1500); 
        }
    });
");
?>